package com.kemai.designmode.chain

import com.kemai.designmode.strategy.Discount

/**

 *@description:责任链模式优惠基类
 * @author: zhaoshanshan
 * @date: 2022/10/4 9:42 上午

 */
open class MultiplyDiscount(private val next:MultiplyDiscount?) {

      open fun calculate(money:Double):Double{
          next?.calculate(money)
        return money;
    }

}